# This is the main CMAKE for build all gms_raw.
# gms_raw
AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR} TGT_gms_raw_SRC)
set(TGT_gms_raw_INC
    ${PROJECT_OPENGS_DIR}/contrib/gms_raw
    ${PROJECT_OPENGS_DIR}/contrib
)

set(gms_raw_DEF_OPTIONS ${MACRO_OPTIONS})
set(gms_raw_COMPILE_OPTIONS ${OPTIMIZE_OPTIONS} ${OS_OPTIONS} ${PROTECT_OPTIONS} ${WARNING_OPTIONS} ${LIB_SECURE_OPTIONS} ${CHECK_OPTIONS})
set(gms_raw_LINK_OPTIONS ${LIB_LINK_OPTIONS})
add_shared_libtarget(gms_raw TGT_gms_raw_SRC TGT_gms_raw_INC "${gms_raw_DEF_OPTIONS}" "${gms_raw_COMPILE_OPTIONS}" "${gms_raw_LINK_OPTIONS}")
set_target_properties(gms_raw PROPERTIES PREFIX "")

install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/gms_raw.control
    DESTINATION share/postgresql/extension/
) 
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/gms_raw--1.0.sql
    DESTINATION share/postgresql/extension/
)
install(TARGETS gms_raw DESTINATION lib/postgresql)
